Configuring PHP Timeouts under Windows Apache

The following instructions are intended for running Zend Server with Zend Enabler on Windows.

Issue:

The default timeout settings for Zend Enabler, may cause runtime failures for scripts that run longer than 60 seconds.

Long scripts occupy the PHP pool, and may render the PHP process unavailable for new requests.

Resolution:

If you know that you have scripts that run more than 60 seconds, set your Zend Enabler and PHP to a longer script timeout duration.

 

Timeout configuration is illustrated in the following diagram:

Notes:

Before editing default values, backup the specified file for easy revert in case PHP functionality fails.

Edit the specified configuration file using a simple text editor. Rich editors may break the formatting and render a non-operational server.

Zend Enabler Settings

This procedure describes how to change the Zend Enabler timeout settings for Apache.

 

 

Instructions on how to complete a procedure

To configure Zend Enabler timeout settings:

  1. Open C:\Program Files(x86)\Zend\ZendServer\etc and in ZendEnablerConf.xml.
  2. Locate the following text:

<Timeouts connectionTimeout="60" requestTimeout="120" />

  1. Change the default settings as follows:

 

PHP Settings

This procedure describes how to configure your PHP's execution time.

 

 

Instructions on how to complete a procedure

To configure your PHP's execution time:

  1. In Zend Server, go to Configurations | PHP.
  2. In the Search box, enter 'resource', and press Enter.
  3. From the Extensions List, select Resource Limits and Tuning, and modify the value for the following directives:
  1. Click .
  2. In the toolbar, the restart icon lights up , indicating a restart is needed to apply changes. Click to restart server and apply changes.
    For information on restarting in Zend Server, see Server Restart.